package com.chatcompetition.context;//项目的上下文

public class BaseContext {
    // 线程变量

    public static ThreadLocal<String> threadLocal = new ThreadLocal<>();
    public static void setCurrentId(String id) {
        threadLocal.set(id);
    }

        public static String getCurrentId() {
        return threadLocal.get();
    }

    public static void removeCurrentId() {
        threadLocal.remove();
    }

}
